package com.yanxml.spring.history.v3.demo6_conditional_on;

import com.yanxml.spring.history.v3.demo6_conditional_on.condition_on.StudentService;
import com.yanxml.spring.history.v3.demo6_conditional_on.config.JavaConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class StartAppDemo6 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(JavaConfig.class);
        System.out.println(applicationContext.getBean(StudentService.class));
    }
}
